﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExpressHelps.DAL
{
    //该类用来在主线程中打印日志信息，简化代码
    public static class EventMediator
    {
        public delegate void LogEventHandler(string message);
        public static event LogEventHandler OnLogEvent;
        public static void TriggerLogEvent(string message)
        {
            OnLogEvent?.Invoke(message);
        }
    }
}
